package action.user;

import service.UserService;

public class CheckEmailAction {
	//input
	private String email;
	//output
	private boolean ok=false;
	//injection
	private UserService userService;
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	
	public String execute() throws Exception{
		ok=userService.checkEmail(email);
		return "success";
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public boolean isOk() {
		return ok;
	}
	public void setOk(boolean ok) {
		this.ok = ok;
	}
	
}
